
#pragma once

#include <Arduino.h>


enum class image_index {
    logo = 0,
    
    // 全屏图片
    hi,
    error,
    sick,
    angry,
    yun,
    love,
    dowhat,
    
    // 天气图标
    rain,
    sun,
    cloud,

    wifi,
    timeimage,
    ipip,
};


struct ImageInfo {
    const uint8_t *bitmap_ptr;
    size_t w;
    size_t h;
};

void init_oled();

void draw_image(image_index ii, size_t x = 0, size_t y = 0);

void draw_need_net();

void draw_time(int hour, int minute);

void draw_logo();

void draw_wifi_control(const String &title, const Printable &ip);

void draw_weather(const String& ii, const String &temp, const String &humidity);
